<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>04_原型链_属性问题</title>
</head>

<body>
    <script type="text/javascript">
        function Fn() {

        }
        Fn.prototype.a = 'xxx'
        var fn1 = new Fn()
        console.log(fn1.a);

        var fn2 = new Fn()
        console.log(fn2.a);
        fn2.a = 'yyy';
        console.log(fn1.a, fn2.a, fn1, fn2);
    </script>
</body>

</html>